<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>

<div id="templatemo_menu">
	<ul>
		<li><a href="<c:url value='/'/>">Home</a></li>
		<li><a class="title" href="<c:url value='/photos'/>">Photos</a></li>
		<li><sec:authorize access="hasRole('ROLE_ADMIN')">
				<a class="login" href="<c:url value='/messages'/>">See messages</a>
			</sec:authorize> <sec:authorize access="!hasRole('ROLE_ADMIN')">
				<a class="login" href="<c:url value='/contact'/>">Contact us</a>
			</sec:authorize>
		
		<li><sec:authorize access="hasRole('ROLE_ADMIN')">
				<a class="Upload album" href="<c:url value='/newalbum'/>">Upload
					album</a>
			</sec:authorize><li><sec:authorize access="isAuthenticated()">
				<a class="login" href="<c:url value='/j_spring_security_logout'/>">Log
					out</a>
			</sec:authorize> <sec:authorize access="!isAuthenticated()">
				<a class="login" href="<c:url value='/login'/>">Log in</a>
			</sec:authorize></li></li>
	</ul>
</div>
